projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91bbce3
)
tooltips: Don't use a cursor_size of 0
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 31 Mar 2019 20:16:01 +0000
(16:16 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 31 Mar 2019 20:17:08 +0000
(16:17 -0400)
This leads to flickering tooltips.
gtk/gtktooltip.c
patch
|
blob
|
history
diff --git
a/gtk/gtktooltip.c
b/gtk/gtktooltip.c
index f5c155c2a32af108d3a701c61b917bb54f6e42de..f309fc7683e6f7a7138e97df3019c7a86f15a781 100644
(file)
--- a/
gtk/gtktooltip.c
+++ b/
gtk/gtktooltip.c
@@
-603,6
+603,9
@@
gtk_tooltip_position (GtkTooltip *tooltip,
"gtk-cursor-theme-size", &cursor_size,
NULL);
+ if (cursor_size == 0)
+ cursor_size = 16;
+
if (device)
anchor_rect_padding = MAX (4, cursor_size - 32);
else